package wifiunion.com.notice.utils.db;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.Table;
import com.lidroid.xutils.db.annotation.Transient;

import java.io.Serializable;

/**
 * 场所信息
 *
 * @author furan
 */
@Table(name = "t_placeinfo")
public class PlaceInfo implements Serializable {

    private static final long serialVersionUID = 3749779315651225132L;
    /**
     * 状态
     * 0
     */
    private int status = -1;

    @Id(column = "id")
    private int Id;

    @Column(column = "place_location")
    private String location;

    @Column(column = "place_serverip")
    private String serverIp;

    @Column(column = "place_serverport")
    private String serverPort;


    @Column(column = "place_noticeserverip")
    private String noticServerIp;

    @Column(column = "place_noticeserverport")
    private String noticeServerPort;
    @Column(column = "place_appversion")
    private String currentAppVersion;
    @Column(column = "place_serverversion")
    private String currentServerVersion;


    @Column(column = "place_istop")
    private int istop;  //是否是第一个 ，记住上次场所的位置


    public int getIstop() {
        return istop;
    }

    public void setIstop(int istop) {
        this.istop = istop;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public String getServerPort() {
        return serverPort;
    }

    public void setServerPort(String serverPort) {
        this.serverPort = serverPort;
    }

    public String getNoticServerIp() {
        return noticServerIp;
    }

    public void setNoticServerIp(String noticServerIp) {
        this.noticServerIp = noticServerIp;
    }

    public String getNoticeServerPort() {
        return noticeServerPort;
    }

    public void setNoticeServerPort(String noticeServerPort) {
        this.noticeServerPort = noticeServerPort;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public int getPictureSource() {
        return pictureSource;
    }

    public void setPictureSource(int pictureSource) {
        this.pictureSource = pictureSource;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    @Column(column = "place_loginname")
    private String loginName;

    @Column(column = "place_loginpwd")
    private String loginPwd;

    // 图片来源 0推荐 1拍照 2相册选取
    @Column(column = "place_picturesource")
    private int pictureSource;

    ///图片地址
    @Column(column = "place_pictureurl")
    private String pictureUrl;

    public String getIcloudImgUrl() {
        return icloudImgUrl;
    }

    public void setIcloudImgUrl(String icloudImgUrl) {
        this.icloudImgUrl = icloudImgUrl;
    }

    /**
     * 云图片路径
     */
    @Transient
    private String icloudImgUrl;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public String getCurrentAppVersion() {
        return currentAppVersion;
    }

    public void setCurrentAppVersion(String currentAppVersion) {
        this.currentAppVersion = currentAppVersion;
    }

    public String getCurrentServerVersion() {
        return currentServerVersion;
    }

    public void setCurrentServerVersion(String currentServerVersion) {
        this.currentServerVersion = currentServerVersion;
    }


    //场所uuid
    @Column(column = "place_uuid")
    private String placeUuid;

    public String getPlaceUuid() {
        return placeUuid;
    }

    public void setPlaceUuid(String placeUuid) {
        this.placeUuid = placeUuid;
    }
}
